﻿@model Sharp.WebBooter.Areas.Workflow.Models.TransitionModel
@{
    var x = Html.X();
    var window = x.Window().Layout(LayoutType.Fit).Title("转移属性编辑")
    .CloseAction(CloseAction.Destroy).MinHeight(340)
    .Width(480)
    ;
}
@{
    window
    .Items(
x.FormPanel().Default().AutoScroll(true)
.Buttons(

x.Button().Text("提交").Icon(Icon.Disk).OnClientClick("transitionproperty.save()").DirectEvents(de =>
{
    de.Click.Before = "App.Edit.submitReady";
    de.Click.EventMask.ShowMask = true;
    de.Click.EventMask.Msg = "正在提交...";
    de.Click.Success = "App.Edit.PostBackSuccess";
}),
x.Button().Text("关闭").Icon(Icon.Cancel).OnClientClick("App.Edit.CloseWindow(this)")
)
.Defaults(d =>
{
    d.Add(new Parameter("padding", 4));
    d.Add(new Parameter("columnWidth", 1));
})
.Layout(LayoutType.Column).Items(
x.Hidden().Name("Id").AutoId(),
x.TextField().Name("Description").FieldLabel("描述").AutoId().Value(Model.Description),
x.ComboBox().FieldLabel("接收者类型").Name("ReceiverType").DataSource(new[]
{
    new {Key="--请选择--",Value="default"} ,
    new {Key="上司",Value="Superior"},
    new {Key="同事",Value="Compeer"},
    new {Key="下属",Value="Subordinate"}
},"","Key","Value")
,
x.TextField().Name("Condition").FieldLabel("条件表达式").AutoId()

));
}
@(
  window
)
